% Marcelo Barros de Almeida/
% Fri Mar 31 09:20:28 2000
%----------------------------------------------------------------
\documentclass[a4paper,12pt,twoside,titlepage,final]{book}
\usepackage{litc,layout}
%ftp://ftp.dante.de/tex-archive/macros/latex/contrib/supported/titlesec
\usepackage[boxed]{algorithm}
\usepackage{algorithmic}
%----------------------------------------------------------------
\newcommand{\cmd}[1]{\texttt{#1}}
\newcommand{\pulauma}{\phantom{macete}\cleardoublepage}
%----- CMD -------------------------------------------
\newsavebox{\vazio}%
\newsavebox{\cheio}%
\sbox{\vazio}{\phantom{\rule{.3cm}{.3cm}}}%
\sbox{\cheio}{\rule{.3cm}{.3cm}}%
\newcounter{posicao}%
\newcommand{\picpos}[2]{%
\setcounter{posicao}{1}%
%\rule{0pt}{13pt}%
\scalebox{#2}{%
\begin{tabular}{|c|c|}%
\hline%
\whiledo{\value{posicao}<8}{%
  \ifthenelse{#1 = 0}{\the\value{posicao}}{}
  \ifthenelse{\isodd{\value{posicao}}}%
  {%
    \ifthenelse{\value{posicao} = #1}%
    {\usebox{\cheio}&}%
    {\usebox{\vazio}&}%
  }%
  {%
    \ifthenelse{\value{posicao} = #1}%
	  {\usebox{\cheio}\\\hline}%
 		{\usebox{\vazio}\\\hline}%
  }%
  \stepcounter{posicao}%
}%
\ifthenelse{#1 = 0}{\the\value{posicao}}{}
\ifthenelse{\isodd{\value{posicao}}}%
{%
  \ifthenelse{\value{posicao} = #1}%
  {\usebox{\cheio}&}%
  {\usebox{\vazio}&}%
}%
{%
  \ifthenelse{\value{posicao} = #1}%
  {\usebox{\cheio}\\\hline}%
  {\usebox{\vazio}\\\hline}%
}%
\end{tabular}%
}%
}
%----- CMD ----------
%----------------------------------------------------------------
\newcommand{\parag}[1]{%

\vspace{1em}
{\bf \noindent #1}
\vspace{0.5em} \\
\noindent
}
%----------------------------------------------------------------
\newcommand{\svmlight}{$\mathrm{SVM}^{light}$}
\newcommand{\pdf}{\mathrm{pdf}}
% --------------------------------------------------------
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{prop}{Proposition}
\newtheorem{lem}[thm]{Lemma}
%----------------------------------------------------------------
%\listfiles
\begin{document}
\selectlanguage{brazil}
%\layout
%----------------------------------------------------------------
\pagenumbering{empty}
\Author{Marcelo Barros de Almeida}
\Title{
\onehalfspacing
SVMs training using re-sampling based on error and
\apriori{} strategies for sample selection
\singlespace 
}
\Maketitle
\pagestyle{empty}
\cleardoublepage
\pagenumbering{arabic}
\pagestyle{empty}
\lhead{}\rhead\cfoot{}
\input{tex/folhaderosto}
\cleardoublepage
%----------------------------------------------------------------
%----------------------------------------------------------------
\onehalfspacing 
% Dedicatorias, agradecimentos ----------------------------------
\input{tex/thanks.tex} 
\singlespace 
% Sumario -------------------------------------------------------
\selectlanguage{english}
\pagenumbering{roman}
\tableofcontents 
% Lista de figuras ----------------------------------------------
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
% Lista de tabelas ----------------------------------------------
\listoftables 
\addcontentsline{toc}{chapter}{List of Tables}
% Lista de abreviacoes ------------------------------------------
\input{tex/abbrev}
\addcontentsline{toc}{chapter}{Abbreviations and Symbols}
\onehalfspacing 
% ------------------------------------------------
\cleardoublepage
% cabecalhos ---------------------------------------------------
\pagenumbering{arabic}
\pagestyle{fancy}
\setlength{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\setlength{\headwidth}{\txtsepmarg}
\lhead[\rm\thepage]
      {\bf\small \rightmark}
\rhead[\bf\small \leftmark]
      {\rm\thepage}
\cfoot{}
%----------------------------------------------------------------
\newcommand{\Over}[2]{\begin{array}{c}#1\\#2\end{array}}
\newcommand{\aN}{\alpha_N}
\newcommand{\aM}{\alpha_M}
\newcommand{\aNn}{\alpha_N^{\mathrm{new}}}
\newcommand{\aMn}{\alpha_M^{\mathrm{new}}}
\newcommand{\aNo}{\alpha_N^{\mathrm{old}}}
\newcommand{\aMo}{\alpha_M^{\mathrm{old}}}
\newcommand{\aNnc}{\alpha_N^{\mathrm{new,clipped}}}
\newcommand{\aMnc}{\alpha_M^{\mathrm{new,clipped}}}
%----------------------------------------------------------------
\onehalfspacing
%\singlespace 
%----------------------------------------------------------------
\input{tex/abstract.tex}
\input{tex/intro.tex}
\input{tex/learngener.tex}
\input{tex/introsvm.tex}
\input{tex/svmtraining.tex}
\input{tex/svmkm.tex}
\input{tex/svmedr.tex}
\input{tex/conclusoes.tex}
%----------------------------------------------------------------
% adicionar para o sumario
\cleardoublepage
\addcontentsline{toc}{chapter}{\bibname}
\bibliography{bibtex/neural,bibtex/svm,bibtex/boosting}
\bibliographystyle{unsrt}
%----------------------------------------------------------------
\appendix
\renewcommand{\chaptername}{Appendix}
\input{tex/svmbr.tex}
\end{document}

